﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Eacademy.Domain.Models.SubjectCompactViewModel>" %>
<div class="subject">
        <a href="#" class="subject-link"><%=Model.SubjectName %></a>
        <div class="mentors">
        <ul class="mentor-list">
        <% foreach (var item in Model.MentorList)
           {%>
            <li>
            	<%= String.Format("{0} {1} {2}",item.FirstName,item.MiddleName,item.LastName)%> - <a href="/student/home/enrollsubject/<%=Model.SubjectId%>?mentorid=<%=item.MentorId %>" class="enroll-subject-link">Enroll</a>
            </li>
            <%
           }%>
        </ul>
        </div>
    </div>
